<?php /* Smarty version 2.6.16, created on 2007-05-16 14:29:01
         compiled from Sites.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strip_tags', 'Sites.tpl', 35, false),array('modifier', 'date_format', 'Sites.tpl', 46, false),)), $this); ?>
<?php if ($this->_tpl_vars['errors']): ?>
<div id="errors">
<?php $_from = $this->_tpl_vars['errors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['error']):
?>
<span class="error"><?php echo $this->_tpl_vars['error']; ?>
</span><br>
<?php endforeach; endif; unset($_from); ?>
</div>
<?php endif; ?>

  <?php if ($this->_tpl_vars['sites']): ?>
<div class="yui-gf"> 
<div class="yui-u first"> 
<h4>Find Me Online Here:</h4>
<table width="100%" cellspacing="0">
<?php $_from = $this->_tpl_vars['sites']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
<tr class="siteRow">
<td><b><a href="<?php echo $this->_tpl_vars['item']['URL']; ?>
"><?php echo $this->_tpl_vars['item']['siteName']; ?>
</a></b></td>
</tr>
<?php if ($this->_tpl_vars['item']['rssURL']): ?>
<tr class="linkRow">
<td valign="top" align="right"><a href="<?php echo $this->_tpl_vars['uriPath']; ?>
/<?php echo $this->_tpl_vars['request']->ownerName; ?>
/Sites/view/<?php echo $this->_tpl_vars['item']['idSite']; ?>
">View Feed >></a></td>
</tr>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
</table>
</div>
<?php endif; ?> 


<div class="yui-u"> 
<?php if ($this->_tpl_vars['rss']): ?>
<h2><?php echo $this->_tpl_vars['rss']->channel['title']; ?>
</h2>
<table width="100%">
<?php $_from = $this->_tpl_vars['rss']->items; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
<tr>
<td><h5><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['link'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['title'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
</a></h5></td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>

<?php elseif ($this->_tpl_vars['mashup']): ?>
<h2>Activity (Last 5 days)</h2> 
<br />
<table width="100%">
<?php $_from = $this->_tpl_vars['mashup']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['timeStamp'] => $this->_tpl_vars['item']):
?>
<tr>
<td><h2><?php echo ((is_array($_tmp=$this->_tpl_vars['timeStamp'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%A, %B %e") : smarty_modifier_date_format($_tmp, "%A, %B %e")); ?>
</h2></td>
</tr>
<?php $_from = $this->_tpl_vars['item']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['site'] => $this->_tpl_vars['entries']):
?>
<tr>
<td><h3><?php echo $this->_tpl_vars['site']; ?>
</h3></td>
</tr>
<?php $_from = $this->_tpl_vars['entries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['entry']):
?>
<tr>
<td><a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['link'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
"><?php echo ((is_array($_tmp=$this->_tpl_vars['entry']['title'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
</a></td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?> 
</table>
<br />

<?php else: ?>
<p class="block">No site to list!</p>
<?php endif; ?> 
</div>
</div>